package node;

public class ConstNode implements Node {
	
	private int v;
	
	public ConstNode(int v) {
		this.v = v;
	}
	
	public int evaluate(int[] param) {
		return v;
	}
	
	public void display(int indent) {
		String in = new String();
		for(int i = 0; i < indent; i++)
			in = in + " ";
		
		System.out.println(in + v);
	}
	
	public Node copyNode() {
		return new ConstNode(v);
	}
}
